package com.distribute.common;


import java.io.Serializable;

/**
 * 消息对象
 *
 * @author chennengcheng
 * @date 2021-09-13 10:50
 * @remark
 */

public class MsgObj implements Serializable {

    private MsgType msgType;

    private String data;

    private String key;

    public MsgObj(MsgType msgType, String key, String data) {
        this.msgType = msgType;
        this.data = data;
        this.key = key;
    }

    public MsgObj(MsgType msgType, String data) {
        this.msgType = msgType;
        this.data = data;
    }

    public MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(MsgType msgType) {
        this.msgType = msgType;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
